import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { IndexComponent as TopicHomeCmp} from './index/index.component';
import { ThreadsInfiniteScrollListComponent } from './threads-infinite-scroll-list/threads-infinite-scroll-list.component';
import { RouterModule } from '@angular/router';
import { EmbedModule } from '../embed/embed.module';
import { PostsModule } from '../posts/posts.module';
import { LazyLoadImageModule,LAZYLOAD_IMAGE_HOOKS, ScrollHooks } from 'ng-lazyload-image';
import { PublishThreadsComponent } from './publish-threads/publish-threads.component';
import { ThreadsPosterComponent } from './threads-poster/threads-poster.component';
import { QRCodeModule } from 'angular2-qrcode';
import { FormsModule } from '@angular/forms';
@NgModule({
  declarations: [
    TopicHomeCmp,
    ThreadsInfiniteScrollListComponent,
    PublishThreadsComponent,
    ThreadsPosterComponent
  ],
  imports: [
    CommonModule,
    RouterModule,
    FormsModule,
    PostsModule,
    EmbedModule,
    LazyLoadImageModule,
    QRCodeModule
  ],
  providers: [{ provide: LAZYLOAD_IMAGE_HOOKS, useClass: ScrollHooks }],
  exports: [
    ThreadsInfiniteScrollListComponent
  ]
})
export class TopicModule { }